﻿namespace BM.Tools.WebControls.MForm.Controls
{
    using System.Collections.ObjectModel;
    using System.Web.UI;
    using System.Xml.Schema;

    /// <summary>
    /// A class that keeps information about the cultural settings of the control.
    /// </summary>
    public class CulturalContext
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="CulturalContext"/> class.
        /// </summary>
        public CulturalContext()
        {
            Formattings = new DateTimeFormattingCollection();
        }

        /// <summary>
        /// Gets the collection of formatting.
        /// </summary>
        [PersistenceMode(PersistenceMode.InnerProperty)]
        public KeyedCollection<XmlTypeCode, DateTimeFormatting> Formattings
        {
            get;
            private set;
        }
    }
}
